<?php
include ("../includes/config.php");

$query = "select city_name, id_city from cities where id_country = ".$_GET['country'];
$result = mysql_query($query) or die (mysql_error());


	echo "<select name=\"stad\" class=\"stedenlijst\" id=\"stedenlijst\">";
		
		while ($city = mysql_fetch_array($result)){
			echo "<option value='".$city['id_city']."'>".$city['city_name']."</option>";
		}
		
		echo "</select>"; 
		echo '<input type="submit" value="Maak pagina aan"/>';
		
?>